<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子内容内边距</title>
    <style>
        div {
            width: 200px;
            height: 200px;
            background-color: red;
            /* padding-top: 50px;
            padding-left: 20px; */
            padding: 5px;
            /* 内边距也会改变盒子的实际大小  用w和h减去内边距的距离*/

        }
    </style>
</head>

<body>
    <div>小米之家</div>
</body>

</html>